from django.shortcuts import render
from .models import Article
# Create your views here.

def blog(request,wid):
    art = Article.objects.get(id=wid)
    html = 'blogs/'+art.content+r'/'+art.content+r'.html'
    return render(request,html)

def blogs(request):
    return render(request, 'er404.html')